package com.lcxw.hxzbapi.controller.incomecontroller;

import com.lcxw.hxzbapi.entity.requestBean.RequestParamBasic;
import com.lcxw.hxzbapi.entity.response.Response;
import com.lcxw.hxzbapi.service.YwpdMemberService;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/income")
public class IncomeController {

    @Resource
    IncomeRealization incomeRealization;

    @Resource
    YwpdMemberService ywpdMemberService;

    @PostMapping("/getMine")
    public Response getMyIncome(@RequestBody RequestParamBasic requestBody) {
        return incomeRealization.getMyIncome(requestBody);
    }

}
